<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>欢迎登入美的空调礼品卡管理系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="STYLESHEET" type="text/css" href="css/style.css">
		<script type="text/javascript" src="/js/md5.js"/>
		<script type="text/javascript" src="/js/jquery-1.7.min.js"></script>
		<script language="javaScript">
		function loginform(){
		    if(document.myform.adminid.value==""){
		     	alert("账号不能为空！");
		     	document.myform.adminid.focus();
		     	return false;
		    }
		    if(document.myform.password.value==""){
		     	alert("密码不能为空！");
		     	document.myform.password.focus();
		     	return false;
		    }
		    
		     var hash = hex_md5(document.forms["myform"].password.value);
 				document.forms["myform"].password.value = hash;
		    
		}
		
		
	</script>
	</head>
	<body  >

     <form id="myform" name="myform" action="/login" onsubmit="return loginform();"   method="post">
			<table cellpadding="0" border="0" width="100%" cellspacing="0"
				height="100%" >
				<tr>
					<td align="center">
						<table width="800" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td colspan="2" background="images/login01.jpg" width="800"
									height="200"></td>
							</tr>
							<tr>
								<td background="images/login02.jpg" width="400" height="200"></td>
								<td background="images/login03.jpg" width="400" height="200">
									<table cellpadding="1" cellspacing="0" border="0" width="80%"
										align="center">
										<tr>
											<td colspan="2" align="left" height="100%">

											</td>
										</tr>

										<tr>
											<td height="100%" align="right" class="loginfontstyle">
												用户ID：
											</td>
											<td align="left" class="loginfontstyle">
												<input type="text" id="adminid" name="adminid" class="loginstyle"
													onMouseOver="this.focus();"
													style="background-image: url(/images/user.gif); background-repeat: no-repeat; padding-left: 20px; width: 150px"
													title="输入登录用户名">
											</td>
										</tr>
										<tr>
											<td height="100%" align="right" class="loginfontstyle">
												密码：
											</td>
											<td align="left">
												<input type="password" id="password" name="password" class="loginstyle"
													onMouseOver="this.focus();"
													style="background-image: url(/images/pwd.gif); background-repeat: no-repeat; padding-left: 20px; width: 150px"
													title="输入登录密码" >
											</td>
										</tr>
										<tr>
											<td height="6px"></td>
										</tr>
										<tr>
											<td>
											</td>
											<td align="left" valign="middle">
												<input type="image"  value="login" width="69" height="21"
													style="cursor: hand"  border="0"  src="/images/loginok.jpg"
													>&nbsp;&nbsp;<font size="1px" color="red">${errormsg!}</font>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2" background="images/login04.jpg" width="800"
									height="100" class="loginbuttomfontstyle" valign="bottom">
									&nbsp;&nbsp;&nbsp;&nbsp;
									
									<br>
								</td></tr>
						</table>
					</td>
				</tr>
			</table>
			
    </form>
		
	</body>
</html>
